package com.longge;

public class IsFlipedString {

    public boolean isFlipedString(String s1, String s2) {
        if (s1.length() == 0 && s2.length() == 0) return true;
        if (s1.length() == 0 || s2.length() == 0) return false;
        return (s1 + s1).contains(s2);
    }
}
